setPreference

fun setPreference(parameterName: String, value: Boolean?)
fun setPreference(parameterName: String, value: Boolean)

Set the given parameter name to the given boolean value, without sending an account-changed event, or recording the account as dirty.


fun setPreference(parameterName: String, value: Int?)
fun setPreference(parameterName: String, value: Int)

Set the given parameter name to the given integer value, without sending an account-changed event, or recording the account as dirty.


fun setPreference(parameterName: String, parameterValue: String?)

Set the given preference name to the given value and associate it with this object in local storage. This will not be synced and neither will it result in any modification notifications being triggered.


fun setPreference(prefix: String?, list: List<*>?)

Saves the given sublist into local storage, associated with this object. Values can be retrieved using getPreferenceSublist(prefix).